﻿using In66.Net.Repository.Entities;

namespace Test.Api.Models
{
    /// <summary>
    /// 纸张订单表
    /// </summary>
    [SugarTable("PAPER_ORDEER", TableDescription = "纸张订单表")]
    public class PaperOrder : SqlSugarEntity
    {

        [SugarColumn(ColumnName = "TrxId")]
        public string TrxId { get; set; }

        [SugarColumn(ColumnName = "SysOrderNumber")]
        public string SysOrderNumber { get; set; }

        #region 商家信息
        [SugarColumn(ColumnName = "BusinessId")]
        public string BusinessId { get; set; }
        #endregion

        #region 收货信息
        [SugarColumn(ColumnName = "BusinessName")]
        public string BusinessName { get; set; }
        [SugarColumn(ColumnName = "Telephone")]
        public string Telephone { get; set; }
        [SugarColumn(ColumnName = "ProvinceId")]
        public string ProvinceId { get; set; }
        [SugarColumn(ColumnName = "CityId")]
        public string CityId { get; set; }
        [SugarColumn(ColumnName = "AreaId")]
        public string AreaId { get; set; }
        [SugarColumn(ColumnName = "AddressInfo")]
        public string AddressInfo { get; set; }
        [SugarColumn(ColumnName = "LineInfo")]
        public string LineInfo { get; set; }
        #endregion

        #region 发货信息
        [SugarColumn(ColumnName = "DeliverInfo")]
        public string DeliverInfo { get; set; }
        #endregion

        #region 物流信息
        [SugarColumn(ColumnName = "LogisticInfo")]
        public string LogisticInfo { get; set; }
        #endregion

        #region 购买信息
        [SugarColumn(ColumnName = "TotalPrice")]
        public decimal TotalPrice { get; set; }
        [SugarColumn(ColumnName = "OrderNumber")]
        public int OrderNumber { get; set; }
        [SugarColumn(ColumnName = "CreateTime")]
        public DateTime CreateTime { get; set; }
        #endregion

        #region 商品信息
        [SugarColumn(ColumnName = "PaperId")]
        public int PaperId { get; set; }
        [SugarColumn(ColumnName = "PaperName")]
        public string PaperName { get; set; }
        [SugarColumn(ColumnName = "UnitPrice")]
        public decimal UnitPrice { get; set; }
        #endregion

        /// <summary>
        /// 订单状态
        /// </summary>
        public int OrderStatus { get; set; }
    }
}
